package com.indexingsystem.db.mongoDB.po;

import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.indexingsystem.boss.Vo.MagazinesTableVo;
import com.indexingsystem.boss.entity.AuditLogs;
import com.indexingsystem.boss.entity.DhResourceauditlogs;
import com.indexingsystem.boss.entity.DhTodayStorageInfos;
import com.indexingsystem.boss.entity.Magazines;
import com.indexingsystem.boss.entity.ResCategoryRelations;
import com.indexingsystem.boss.entity.ResourceRelations;
import com.indexingsystem.boss.entity.Resources;
import com.indexingsystem.boss.entity.SpecialResourceDatas;

public class MagazinesListPo implements Serializable {
	private static final long	serialVersionUID	= 966439012715986700L;

	private String				resId;

	private String				resTable;

	private String				resTypeId;

	private Resources			resources;

	private MagazinesTableVo	magazinesTableVo;

	private Magazines			magazines;

	public List<SpecialResourceDatas> getDhSpecialResourceDatasList() {
		return dhSpecialResourceDatasList;
	}

	public void setDhSpecialResourceDatasList(List<SpecialResourceDatas> dhSpecialResourceDatasList) {
		this.dhSpecialResourceDatasList = dhSpecialResourceDatasList;
	}

	public void setResCategoryRelationsList(List<ResCategoryRelations> resCategoryRelationsList) {
		this.resCategoryRelationsList = resCategoryRelationsList;
	}

	private List<SpecialResourceDatas>	dhSpecialResourceDatasList;

	private List<ResCategoryRelations>	resCategoryRelationsList;

	private AuditLogs					auditLogs;

	private List<String>				articleIds;

	private List<DhTodayStorageInfos>	todayStorageInfosList;
	private DhResourceauditlogs			resourceauditlogs;
	private List<ResourceRelations>		dhResourceRelationsList;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getResTable() {
		return resTable;
	}

	public void setResTable(String resTable) {
		this.resTable = resTable;
	}

	public String getResTypeId() {
		return resTypeId;
	}

	public void setResTypeId(String resTypeId) {
		this.resTypeId = resTypeId;
	}

	public Resources getResources() {
		return resources;
	}

	public void setResources(Resources resources) {
		this.resources = resources;
	}

	public MagazinesTableVo getMagazinesTableVo() {
		return magazinesTableVo;
	}

	public void setMagazinesTableVo(MagazinesTableVo magazinesTableVo) {
		this.magazinesTableVo = magazinesTableVo;
	}

	public Magazines getMagazines() {
		return magazines;
	}

	public void setMagazines(Magazines magazines) {
		this.magazines = magazines;
	}

	public List<ResCategoryRelations> getResCategoryRelationsList() {
		return resCategoryRelationsList;
	}

	public AuditLogs getAuditLogs() {
		return auditLogs;
	}

	public void setAuditLogs(AuditLogs auditLogs) {
		this.auditLogs = auditLogs;
	}

	public List<String> getArticleIds() {
		return articleIds;
	}

	public void setArticleIds(List<String> articleIds) {
		this.articleIds = articleIds;
	}

	public List<DhTodayStorageInfos> getTodayStorageInfosList() {
		return todayStorageInfosList;
	}

	public void setTodayStorageInfosList(List<DhTodayStorageInfos> todayStorageInfosList) {
		this.todayStorageInfosList = todayStorageInfosList;
	}

	public DhResourceauditlogs getResourceauditlogs() {
		return resourceauditlogs;
	}

	public void setResourceauditlogs(DhResourceauditlogs resourceauditlogs) {
		this.resourceauditlogs = resourceauditlogs;
	}

	public List<ResourceRelations> getDhResourceRelationsList() {
		return dhResourceRelationsList;
	}

	public void setDhResourceRelationsList(List<ResourceRelations> dhResourceRelationsList) {
		this.dhResourceRelationsList = dhResourceRelationsList;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((resTable == null) ? 0 : resTable.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MagazinesListPo other = (MagazinesListPo) obj;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals( other.resId ))
			return false;
		if (resTable == null) {
			if (other.resTable != null)
				return false;
		} else if (!resTable.equals( other.resTable ))
			return false;
		return true;
	}

	public MagazinesListPo() {
		super();
	}

	public MagazinesListPo(String resId, String resTable, String resTypeId, Resources resources, MagazinesTableVo magazinesTableVo,
			Magazines magazines, List<SpecialResourceDatas> dhSpecialResourceDatasList, List<ResCategoryRelations> resCategoryRelationsList,
			AuditLogs auditLogs, List<String> articleIds, List<DhTodayStorageInfos> todayStorageInfosList, DhResourceauditlogs resourceauditlogs,
			List<ResourceRelations> dhResourceRelationsList) {
		super();
		this.resId = resId;
		this.resTable = resTable;
		this.resTypeId = resTypeId;
		this.resources = resources;
		this.magazinesTableVo = magazinesTableVo;
		this.magazines = magazines;
		this.dhSpecialResourceDatasList = dhSpecialResourceDatasList;
		this.resCategoryRelationsList = resCategoryRelationsList;
		this.auditLogs = auditLogs;
		this.articleIds = articleIds;
		this.todayStorageInfosList = todayStorageInfosList;
		this.resourceauditlogs = resourceauditlogs;
		this.dhResourceRelationsList = dhResourceRelationsList;
	}

	@Override
	public String toString() {
		return "MagazinesListPo [resId=" + resId + ", resTable=" + resTable + ", resTypeId=" + resTypeId + ", resources=" + resources
				+ ", magazinesTableVo=" + magazinesTableVo + ", magazines=" + magazines + ", dhSpecialResourceDatasList="
				+ dhSpecialResourceDatasList + ", resCategoryRelationsList=" + resCategoryRelationsList + ", auditLogs=" + auditLogs
				+ ", articleIds=" + articleIds + ", todayStorageInfosList=" + todayStorageInfosList + ", resourceauditlogs=" + resourceauditlogs
				+ ", dhResourceRelationsList=" + dhResourceRelationsList + "]";
	}
}